tmpdir="@KEDR_TEST_PREFIX_TEMP_SESSION@/kedr_fsim_final_template_ellipsis"
payload_fsim="@kmodule_name@.ko"

test_function()
{
	# Whether fault simulation point is created
	if ! test -d "${fault_simulation_points_dir}/kasprintf"; then
		printf "Fault simulation point 'kasprintf' is not created.\n"
		return 1
	fi

	# Verify that parameters are passed correctly to the indicator.
	if ! echo "${indicator_greater_than_name}" "10" > "${fault_simulation_points_dir}/kasprintf/current_indicator"; then
		printf "Fail to set indicator for fault simulation point 'kasprintf'.\n"
		return 1
	fi

	if ! trigger_function "kasprintf" "10"; then
		printf "Execution of kasprintf should succeed, but it doesn't.\n"
		return 1
	fi


	if trigger_function "kasprintf" "11"; then
		printf "Execution of kasprintf should fail(because of indicator), but it doesn't.\n"
		return 1
	fi
}